﻿using Microsoft.AspNetCore.Mvc;

namespace MVC系统mvc.Controllers
{
    public class ShopMachineController : Controller
    {
        private readonly IConfiguration _configuration;

        public ShopMachineController(IConfiguration configuration)
        {
            _configuration = configuration;
        }

        /// <summary>
        /// 车间列表
        /// </summary>
        /// <returns></returns>
        public IActionResult Workshop()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }

        /// <summary>
        /// 机床列表
        /// </summary>
        /// <returns></returns>
        public IActionResult Device()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }

        /// <summary>
        /// 添加车间
        /// </summary>
        /// <returns></returns>
        public IActionResult AddWorkshop()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }

        /// <summary>
        /// 编辑车间
        /// </summary>
        /// <returns></returns>
        public IActionResult EditWorkshop()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }

        /// <summary>
        /// 查看车间
        /// </summary>
        /// <returns></returns>
        public IActionResult ShowWorkshop()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }

        /// <summary>
        /// 添加机床
        /// </summary>
        /// <returns></returns>
        public IActionResult AddDevice()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }

        /// <summary>
        /// 编辑机床
        /// </summary>
        /// <returns></returns>
        public IActionResult EditDevice()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }

        /// <summary>
        /// 查看机床
        /// </summary>
        /// <returns></returns>
        public IActionResult ShowDevice()
        {
            var apiUrl = _configuration["Url"];
            return View(new { ApiUrl = apiUrl });
        }
    }
}
